import http from '@/utils/http'

const accountLogin = (params) => {
  console.log(params)
  return new Promise(function(resolve, reject){
   resolve({
    success: true,
    message: '登录成功',
    date: {
      accessToken: '1234567890',
      platformId: '1000002',
      resumCompleteRatio: 60,
      resumeId: '1234567890',
      userId: '1234567890',
     }
   }
    )
  })
  // http.postJson('/api/ucenter/login/accountLogin', params).then(res => {
  //   return res.data
  // })
}

const logout = (params) => {
  return new Promise(function(resolve, reject){
   resolve({
    success: true,
    message: '退出成功',
    date: {
      accessToken: '1234567890',
      platformId: '1000002',
      resumCompleteRatio: 60,
      resumeId: '1234567890',
      userId: '1234567890',
     }
   }
    )
  })
  // return http.getJson('/api/ucenter/login/logout', params).then(res => {
  //   return res.data
  // })
}


export default {
  accountLogin,
  logout
}
